#pragma once
#include "abstractnode.h"
#include "list.h"

class Method : public AbstractNode
{
private:
	ListNode<AbstractNode> * c_stmtList;
	AbstractNode * c_methodVarList;
public:
	inline Method(AbstractNode * methodVarList, ListNode<AbstractNode> * stmtList) : AbstractNode() {c_stmtList=stmtList; c_methodVarList=methodVarList; }
	
	void write(GraphStream * s);

	inline ListNode<AbstractNode> * stmtList() {return c_stmtList;};

	inline ~Method() {delete c_stmtList; delete c_methodVarList;}
};
